package com.muyu.system.domain.dto;


import com.muyu.system.domain.enums.OrderSourceEnum;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author Administrator
 */
@Data
public class UpdateAddressDTO {

    /**
     * 订单id
     */
    @NotNull(message = "订单id不能为空")
    private Long orderId;


    /**
     * 订单来源
     */
    @NotNull(message = "订单来源不能为空")
    private OrderSourceEnum source;

    /** 收货人姓名 */
    @NotBlank(message = "收货人姓名不能为空")
    private String receiverName;

    /** 收货人电话 */
    @NotBlank(message = "收货人电话不能为空")
    private String receiverPhone;

    /** 省份/直辖市 */
    @NotBlank(message = "省份/直辖市不能为空")
    private String receiverProvince;

    /** 城市 */
    @NotBlank(message = "城市不能为空")
    private String receiverCity;

    /** 区 */
    @NotBlank(message = "区不能为空")
    private String receiverRegion;

    /** 详细地址 */
    @NotBlank(message = "详细地址不能为空")
    private String receiverDetailAddress;

}
